<template>
  <div class="center">
    <div class="session-header">
      <h1>直播场次管理</h1>
      <button class="add-btn">新建直播场次</button>
    </div>
    <div class="session-list">
      <div class="session-item">
        <div class="session-info">
          <h3>美妆专场直播</h3>
          <p>时间：2025-09-25 19:00-21:00</p>
          <p>状态：未开始</p>
        </div>
        <div class="session-actions">
          <button class="edit-btn">编辑</button>
          <button class="delete-btn">删除</button>
        </div>
      </div>
      <div class="session-item">
        <div class="session-info">
          <h3>服饰专场直播</h3>
          <p>时间：2025-09-26 18:30-20:30</p>
          <p>状态：未开始</p>
        </div>
        <div class="session-actions">
          <button class="edit-btn">编辑</button>
          <button class="delete-btn">删除</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
</script>

<style scoped>
.center {
  flex: 1;
  background-color: #fff;
  padding: 60px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.session-header h1 {
  font-size: 32px;
  color: #222;
  font-weight: 700;
}
.add-btn {
  padding: 10px 24px;
  background-color: #03bcf5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.add-btn:hover {
  background-color: #02a8e0;
}
.session-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.session-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}
.session-info p {
  font-size: 14px;
  color: #666;
  margin: 4px 0;
}
.session-actions {
  display: flex;
  gap: 10px;
}
.edit-btn, .delete-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.edit-btn {
  background-color: #f0f0f0;
  color: #333;
}
.edit-btn:hover {
  background-color: #e0e0e0;
}
.delete-btn {
  background-color: #ff4d4f;
  color: #fff;
}
.delete-btn:hover {
  background-color: #f5222d;
}
</style>